package com.example.demo.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZQW
 */
public class Invoice extends Model<Invoice> {

private static final long serialVersionUID=1L;

    /**
     * ID主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 发票号码
     */
    @TableField("InvoiceNum")
    private String InvoiceNum;

    /**
     * 发票金额
     */
    @TableField("Money")
    private BigDecimal Money;

    /**
     * 发票状态  1-正常  2-作废 
     */
    @TableField("State")
    private Integer State;

    /**
     * 收/退费时间 
     */
    @TableField("CreationTime")
    private Date CreationTime;

    /**
     * 收/退费人员ID 
     */
    @TableField("UserID")
    private Integer UserID;

    /**
     * 挂号ID 
     */
    @TableField("RegistID")
    private Integer RegistID;

    /**
     * 收费方式 
     */
    @TableField("FeeType")
    private Integer FeeType;

    /**
     * 冲红发票号码
     */
    @TableField("Back")
    private String Back;

    /**
     * 发票状态  0-未日结  1-已提交  2-已审核 
     */
    @TableField("DailyState")
    private Integer DailyState;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getInvoiceNum() {
        return InvoiceNum;
    }

    public void setInvoiceNum(String InvoiceNum) {
        this.InvoiceNum = InvoiceNum;
    }

    public BigDecimal getMoney() {
        return Money;
    }

    public void setMoney(BigDecimal Money) {
        this.Money = Money;
    }

    public Integer getState() {
        return State;
    }

    public void setState(Integer State) {
        this.State = State;
    }

    public Date getCreationTime() {
        return CreationTime;
    }

    public void setCreationTime(Date CreationTime) {
        this.CreationTime = CreationTime;
    }

    public Integer getUserID() {
        return UserID;
    }

    public void setUserID(Integer UserID) {
        this.UserID = UserID;
    }

    public Integer getRegistID() {
        return RegistID;
    }

    public void setRegistID(Integer RegistID) {
        this.RegistID = RegistID;
    }

    public Integer getFeeType() {
        return FeeType;
    }

    public void setFeeType(Integer FeeType) {
        this.FeeType = FeeType;
    }

    public String getBack() {
        return Back;
    }

    public void setBack(String Back) {
        this.Back = Back;
    }

    public Integer getDailyState() {
        return DailyState;
    }

    public void setDailyState(Integer DailyState) {
        this.DailyState = DailyState;
    }

    public static final String ID = "ID";

    public static final String INVOICENUM = "InvoiceNum";

    public static final String MONEY = "Money";

    public static final String STATE = "State";

    public static final String CREATIONTIME = "CreationTime";

    public static final String USERID = "UserID";

    public static final String REGISTID = "RegistID";

    public static final String FEETYPE = "FeeType";

    public static final String BACK = "Back";

    public static final String DAILYSTATE = "DailyState";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Invoice{" +
        "id=" + id +
        ", InvoiceNum=" + InvoiceNum +
        ", Money=" + Money +
        ", State=" + State +
        ", CreationTime=" + CreationTime +
        ", UserID=" + UserID +
        ", RegistID=" + RegistID +
        ", FeeType=" + FeeType +
        ", Back=" + Back +
        ", DailyState=" + DailyState +
        "}";
    }
}
